package com.delio.server.base;

import java.io.IOException;
import java.io.Reader;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class Conexion {
	public SqlMapClient getSqlMap(){
        String resource = "com/delio/server/base/Conexion.xml";
        Reader reader=null;
		try {
			reader = Resources.getResourceAsReader(resource);
		} catch (IOException e) {
			e.printStackTrace();
		}
        SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
        return sqlMap;
    }
}